package com.ios.dto;

import com.ios.entity.PsychologicalTestQuestion;
import com.ios.enums.PsychologicalTestEnum;

import java.util.List;

/**
*@Author:WenTao
*@Description:测试问题中间返回结果集
*@Date:15:11 2018/7/20
*/
public class PsychologicalQuestionExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*测试类型list*/
    private List<PsychologicalTestQuestion> psychologicalTestQuestionList;

    /*操作失败时的构造器*/
    public PsychologicalQuestionExecution(PsychologicalTestEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public PsychologicalQuestionExecution(PsychologicalTestEnum stateEnum, List<PsychologicalTestQuestion> psychologicalTestQuestionList){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.psychologicalTestQuestionList=psychologicalTestQuestionList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public List<PsychologicalTestQuestion> getPsychologicalTestQuestionList() {
        return psychologicalTestQuestionList;
    }

    public void setPsychologicalTestQuestionList(List<PsychologicalTestQuestion> psychologicalTestQuestionList) {
        this.psychologicalTestQuestionList = psychologicalTestQuestionList;
    }
}
